Application::DoParseOptions
Section: ET++ method description (n)
Updated: automatically Fri Mar 1 10:58:03 1991
Index
Return to Main Contents
NAME
Application::DoParseOptions - instance method
TEMPLATE
argsParsed = int
DoParseOptions(char * option, char * nextArgument)
SPECIFIERS
public
virtual
DESCRIPTION
DoParseOptions parses a command line option and returns the number of parsed arguments.
The method ParseCommandLine calls this method for every argument starting with "-". DoParseOptions processes the following options: -Ed, -Eb, -Ec, -Eh, -Em, -Ee, -EE, -Ew, -Ei, -Ep x,y.
This method must be overridden if the application should recognize additional command line options. If the complete command line should be interpreted differently then override the method ParseCommandLine.
Method is sometimes overridden.
ARGUMENTS
- char * option
-
a command line option starting with "-", f.i. "-Eb"
- char * nextArgument
-
the next argument behind the option on the command line, f.i. if option is the 3rd argument then nextArgument contains the 4th argument. The nextArgument may be useful if option requires an additional argument.
The nextArgument can be NULL.
RETURN ARGUMENT
- int argsParsed
-
the number of parsed arguments.
If the command line option uses only the option then it is 1. If nextArgument is also used then it is 2. If the option is unknown then 0 must be returned.
CATEGORIES
command line, overrider interface
FIRST DEFINITION
class Application
FILES
- implementation:
-
Application.C
Index
- NAME
-
- TEMPLATE
-
- SPECIFIERS
-
- DESCRIPTION
-
- ARGUMENTS
-
- RETURN ARGUMENT
-
- CATEGORIES
-
- FIRST DEFINITION
-
- FILES
-
This document was created by
man2html,
using the manual pages.
Time: 00:40:32 GMT, March 30, 2022